<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>登录</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{http://localhost:8080/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link th:href="@{http://localhost:8080/css/signin.css}" rel="stylesheet">
    <link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
</head>

<body class="text-center">
<form class="form-signin" method="post" th:action="@{/user/login}">
    <img class="mb-4" th:src="@{/img/login.jpg}" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">请登录</h1>
    <div style="color: red" th:text="${msg}"></div>
    <label class="sr-only" th:text="用户名"></label>
    <input type="text" name="username" class="form-control" th:placeholder="用户名" required="" autofocus="">
    <label class="sr-only" th:text="密码"></label>
    <input type="password" name="password" class="form-control" th:placeholder="密码" required="">

    <button class="btn btn-lg btn-primary btn-block" type="submit" th:text="登录">登录</button>
</form>

</body>

</html>